import Vue from 'vue'
import App from './App.vue'
import Vant, { Lazyload } from 'vant'
import 'vant/lib/index.css'
import api from '@/request/api'
import store from '@/store'
import router from './router'
import DiyComponent from './config'

Vue.config.productionTip = false
Vue.prototype.$api = api

Vue.use(Vant)
Vue.use(Lazyload)
Vue.use(DiyComponent)

Vue.component('button-counter', {
  data: function () {
    return {
      count: 0
    }
  },
  template: '<button @click="count++">You clicked me {{ count }} times.</button>'
})


new Vue({
  render: h => h(App),
  router,
  store
}).$mount('#app')
